import sequelize from "../../db/dbConnext";
import { option } from "../../db/commomConfig";
import { DataTypes } from "sequelize";

import CatEntity from "../../../entities/pet/CatEntity";
export type ICat = Omit<CatEntity, "validateThis">;

const CatModel = sequelize.define<any, ICat>(
  "cat_admin",
  {
    chipCode: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    variety: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    name: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    color: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    sex: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    brithday: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    hair: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    host: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    homeName: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    imgUrl: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    shelfNum: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    saleUnit: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    petStatus: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    parent: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    grade: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    petType: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    generation: {
      type: DataTypes.STRING,
      allowNull: true,
    },

    // 品牌
    brand: {
      type: DataTypes.STRING,
      allowNull: true,
    },
  },
  option
);
export default CatModel;
